using net_work.Common.Request;
using net_work.Data.Enum.System;

namespace net_work.IService.BackgroundTask.IService;

public interface ITcrAndStuExcelService
{
    /// <summary>
    /// 创建任务
    /// </summary>
    /// <param name="file">文件</param>
    /// <param name="taskType">任务类型</param>
    /// <returns>任务ID</returns>
    public Task<string> CreateTask(IFormFile file, TaskType taskType);

    /// <summary>
    /// 导出老师Excel模版
    /// </summary>
    /// <returns>字节数组</returns>
    public byte[] TeacherExport();

    /// <summary>
    /// 导出学生Excel模版
    /// </summary>
    /// <returns>字节数组</returns>
    byte[] StudentExport();

    /// <summary>
    /// 获取任务状态
    /// </summary>
    /// <param name="taskId">任务ID</param>
    /// <returns>任务状态</returns>
    Task<string> GetTaskStatus(string taskId);
}